package com.admin.base;
/**
 * @author : alex
 * @date : 2020/2/10
 */
public class BaseQuery {
	public static final int DEFAULT_PAGE_SIZE = 10;
	private int pageNumber;
	private int pageSize = DEFAULT_PAGE_SIZE;
	private int startRow;
	private String[] filterRules;
	private String[] sort;

	public int getPageNumber() {
		return pageNumber;
	}

	public void setPageNumber(int pageNumber) {
		this.pageNumber = pageNumber;
	}

	public int getPageSize() {
		return pageSize;
	}

	public void setPageSize(int pageSize) {
		this.pageSize = pageSize;
	}

	public int getStartRow() {
		return (pageNumber - 1) * pageSize;
	}
	

}
